@staticmethod<EOL><INDENT>def _convert_to_container_dirs(host_paths_to_convert, host_to_container_path_mapping):<DEDENT>
if not host_paths_to_convert:<EOL><INDENT>return host_paths_to_convert<EOL><DEDENT>mapping = {str(pathlib.Path(p).resolve()): v for p, v in host_to_container_path_mapping.items()}<EOL>result = []<EOL>for original_path in host_paths_to_convert:<EOL><INDENT>abspath = str(pathlib.Path(original_path).resolve())<EOL>if abspath in mapping:<EOL><INDENT>result.append(mapping[abspath])<EOL><DEDENT>else:<EOL><INDENT>result.append(original_path)<EOL>LOG.debug("<STR_LIT>"<EOL>"<STR_LIT>", abspath)<EOL><DEDENT><DEDENT>return result<EOL>
Use this method to convert a list of host paths to a list of equivalent paths within the container
where the given host path is mounted. This is necessary when SAM CLI needs to pass path information to
the Lambda Builder running within the container.

If a host path is not mounted within the container, then this method simply passes the path to the result
without any changes.

Ex:
    [ "/home/foo", "/home/bar", "/home/not/mounted"]  => ["/tmp/source", "/tmp/manifest", "/home/not/mounted"]

Parameters
----------
host_paths_to_convert : list
    List of paths in host that needs to be converted

host_to_container_path_mapping : dict
    Mapping of paths in host to the equivalent paths within the container

Returns
-------
list
    Equivalent paths within the container