@staticmethod
def from_python_file(python_file, definition, working_directory):
    check.str_param(python_file, 'python_file')
    check.str_param(definition, 'definition')
    check.opt_str_param(working_directory, 'working_directory')
    if working_directory:
        return FileInDirectoryCodePointer(python_file=python_file, fn_name=definition, working_directory=working_directory)
    return FileCodePointer(python_file=python_file, fn_name=definition)
@staticmethod
def from_python_file(python_file, definition, working_directory):
    check.str_param(python_file, 'python_file')
    check.str_param(definition, 'definition')
    check.opt_str_param(working_directory, 'working_directory')
    if working_directory:
        return FileInDirectoryCodePointer(python_file=python_file, fn_name=definition, working_directory=working_directory)
    return FileCodePointer(python_file=python_file, fn_name=definition)